package com.bit.log.facecode;
//门面模式的设置：进行管理起居室，卧室，走廊的相关灯的开关；
public class FaceCodeClient {
    private LivingRoomLight livingRoomLight=new LivingRoomLight();
    private BedRoomLight bedRoomLight=new BedRoomLight();
    private HallRoomLight hallRoomLight=new HallRoomLight();
    public void on(){
        livingRoomLight.on();
        bedRoomLight.on();
        hallRoomLight.on();
    }
    public void off(){
        livingRoomLight.off();
        bedRoomLight.off();
        hallRoomLight.off();
    }
}
